package com.hisense.hiioc.hismartplate.entity.table.enumdefine;

/**
 * @Author: almo
 * @Date: 2019/1/3 下午1:30
 * @Version 1.0
 */
public enum ScreenType {

    ALARM("alarm"),
    BUT("bus"),
    RAIL("rail"),
    STATION("station"),
    BLOCK("block");

    private String index;

    ScreenType(String index) {
        this.index = index;
    }

    public static ScreenType intOf(int index) {
        if(index<0||index>4)
            return null;
        return ScreenType.values()[index];
    }

    public String getIndex() {
        return index;
    }
}
